]> dgit.raspbian.org Git - gnome-shell.git/commit
status/keyboard: Always released held keyboard after activating source
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 11 Oct 2024 12:30:44 +0000 (14:30 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 15 Oct 2024 15:06:36 +0000 (15:06 +0000)
commitfb58ceb4c5cf1ce60666229df25f4bbdb4934789
tree48a428a553d499fa887002935fb0c52175bf2b29
parent0a3c12f8d6c21906ae5c2b0677501a2897abdd83
status/keyboard: Always released held keyboard after activating source

As the keyboard is released asynchronously after setting the ibus
engine, there's a possibility that the `this._reloading` property
changed in the meantime.

To ensure that `holdKeyboard()` and `releaseKeyboard()` are correctly
paired, record the condition in a local variable so that it maintains
its value in the callback.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3476>
js/ui/status/keyboard.js